package com.joplus.housekeeper.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * author： ccm
 * time： 2017/6/21.
 * description：
 */

public class AccompentSearchHospitalBean {

    /**
     * code : 2000
     * data : [{"address":"北京市朝阳区和平里樱花东路","level":"三甲","latitude":39.980058,"name":"北京中日友好医院","id":1,"pic":"http://7xpx05.com2.z0.glb.qiniucdn.com/defHospitalPic.png","type":0,"longitude":116.431326},{"address":"北京市朝阳区白家庄路8号","level":"三甲","latitude":39.931574,"name":"北京朝阳医院","id":2,"pic":"http://7xpx05.com2.z0.glb.qiniucdn.com/defHospitalPic.png","type":0,"longitude":116.459658},{"address":"北京市朝阳区安定门外安贞里","level":"三甲","latitude":39.979339,"name":"北京安贞医院","id":3,"pic":"http://7xpx05.com2.z0.glb.qiniucdn.com/defHospitalPic.png","type":0,"longitude":116.408707},{"address":"北京市朝阳区德外双翔北里9号","level":"三甲","latitude":40.000456,"name":"解放军306医院","id":4,"pic":"http://7xpx05.com2.z0.glb.qiniucdn.com/defHospitalPic.png","type":0,"longitude":116.385325},{"address":"北京市东城区左安门外潘家园","level":"三甲","latitude":39.878765,"name":"中科院肿瘤医院","id":6,"pic":"http://7xpx05.com2.z0.glb.qiniucdn.com/defHospitalPic.png","type":0,"longitude":116.453212},{"address":"北京市朝阳区姚家园路251号","level":"三甲","latitude":39.936528,"name":"北京妇产医院（东院）","id":7,"pic":"http://7xpx05.com2.z0.glb.qiniucdn.com/defHospitalPic.png","type":0,"longitude":116.477352},{"address":"北京市朝阳区朝外高井甲1号","level":"三级","latitude":39.922894,"name":"中国民航总医院","id":8,"pic":"http://7xpx05.com2.z0.glb.qiniucdn.com/defHospitalPic.png","type":0,"longitude":116.536161},{"address":"北京市朝阳区西坝河南里29号","level":"三级","latitude":39.968267,"name":"煤炭总医院","id":9,"pic":"http://7xpx05.com2.z0.glb.qiniucdn.com/defHospitalPic.png","type":0,"longitude":116.434259},{"address":"北京市朝阳区望京中环南路6号","level":"三甲","latitude":39.988793,"name":"中国中医科学院望京医院","id":11,"pic":"http://7xpx05.com2.z0.glb.qiniucdn.com/defHospitalPic.png","type":0,"longitude":116.480039},{"address":"北京市朝阳区工人体育场南路","level":"二甲","latitude":39.988793,"name":"朝阳区中医院","id":12,"pic":"http://7xpx05.com2.z0.glb.qiniucdn.com/defHospitalPic.png","type":0,"longitude":116.480039}]
     * message : 请求成功
     */

    private String code;
    private String message;
    private List<DataBean> data;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements Parcelable {
        /**
         * address : 北京市朝阳区和平里樱花东路
         * level : 三甲
         * latitude : 39.980058
         * name : 北京中日友好医院
         * id : 1
         * pic : http://7xpx05.com2.z0.glb.qiniucdn.com/defHospitalPic.png
         * type : 0
         * longitude : 116.431326
         */

        private String address;
        private String level;
        private double latitude;
        private String name;
        private int id;
        private String pic;
        private int type;
        private double longitude;

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getLevel() {
            return level;
        }

        public void setLevel(String level) {
            this.level = level;
        }

        public double getLatitude() {
            return latitude;
        }

        public void setLatitude(double latitude) {
            this.latitude = latitude;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getPic() {
            return pic;
        }

        public void setPic(String pic) {
            this.pic = pic;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public double getLongitude() {
            return longitude;
        }

        public void setLongitude(double longitude) {
            this.longitude = longitude;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.address);
            dest.writeString(this.level);
            dest.writeDouble(this.latitude);
            dest.writeString(this.name);
            dest.writeInt(this.id);
            dest.writeString(this.pic);
            dest.writeInt(this.type);
            dest.writeDouble(this.longitude);
        }

        public DataBean() {
        }

        protected DataBean(Parcel in) {
            this.address = in.readString();
            this.level = in.readString();
            this.latitude = in.readDouble();
            this.name = in.readString();
            this.id = in.readInt();
            this.pic = in.readString();
            this.type = in.readInt();
            this.longitude = in.readDouble();
        }

        public static final Parcelable.Creator<DataBean> CREATOR = new Parcelable.Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel source) {
                return new DataBean(source);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };
    }
}
